package de.rj.urwalking.data.survey;

import java.io.Serializable;

public class ScalePoint implements Serializable, Comparable<ScalePoint> {

	private static final long serialVersionUID = 1L;
	private int intValue;
	private String title;
	private int pictureId;
	private boolean isOutdoor;
	private boolean isIndoor;

	public ScalePoint(String title, int intValue) {
		this(title, intValue, 0, true, true);
	}

	public ScalePoint(String title, int intValue, int pictureId, boolean isIndoor, boolean isOutdoor) {

		this.title = title;
		this.intValue = intValue;
		this.pictureId = pictureId;
		this.isIndoor = isIndoor;
		this.isOutdoor = isOutdoor;
	}

	public int getIntValue() {
		return intValue;
	}

	public String getTitle() {
		return title;
	}

	public int getPictureId() {
		return pictureId;
	}

	@Override
	public int compareTo(ScalePoint another) {
		return intValue - another.getIntValue();
	}

	@Override
	public String toString() {
		return title;
	}

	public boolean isOutdoor() {
		return isOutdoor;
	}

	public boolean isIndoor() {
		return isIndoor;
	}
}
